#include<iostream>
#include<algorithm>
using namespace std;
int cmp(int x, int y)
{
	return x < y;
}
int main()
{
	int arr[9] = { 22,4,3,2,1,56,4334,23,13 };
	sort(arr, arr + 9, cmp);
	for (int i = 0; i < 9; i++) {
		cout << arr[i] << " ";
	}
	return 0;
}